<?php

use yii\helpers\Html;
use common\widgets\MyActiveForm;
use kartik\color\ColorInput;

/* @var $this yii\web\View */
/* @var $model common\models\DdWxappSlide */
/* @var $form yii\widgets\MyActiveForm */
?>

<div class="dd-wxapp-slide-form">

    <?php $form = MyActiveForm::begin(); ?>
    <?= $form->field($model, 'images')->widget('manks\FileInput', [])->label('图片'); ?>

    <?=  $form->field($model, 'background')->widget(ColorInput::classname(), 
        [
        'options' => ['placeholder' => 'Select color ...'],
    ]); ?>

    <?= $form->field($model, 'url')->textInput(['maxlength' => true]) ?>


    <div class="form-group">
        <div class="col-sm-offset-2 col-sm-10">
            <?= Html::submitButton('保存', ['class' => 'btn btn-success']) ?>
        </div>
    </div>

    <?php MyActiveForm::end(); ?>

</div>
